package cn.xspace.library.bean;

import com.thoughtworks.xstream.annotations.XStreamAlias;

import java.io.Serializable;

/**
 * Created by liuchen on 2016/11/30.
 */

@XStreamAlias("page")
public class GuideSinglePageBean implements Serializable {

    @XStreamAlias("from")
    public int pageFrom = 0;
    @XStreamAlias("src")
    public String pageSrc = "";
    public int pageSrcId = 0;

    @XStreamAlias("isFinishPage")
    public String finishPage = "0";

    public boolean isFinishPage() {
        return finishPage.equals("1");
    }

    @Override
    public String toString() {
        return "GuideSinglePageBean{" +
                "pageFrom=" + pageFrom +
                ", pageSrc='" + pageSrc + '\'' +
                ", finishPage='" + finishPage + '\'' +
                '}';
    }
//    <from></from><!--图片资源来源 0:本地 1:网络-->
//    <src></src><!-- 图片资源目录 本地：放到 res/drawable-hdpi 目录下面；网络：网络地址 -->
//    <isFinishPage></isFinishPage><!--判断是否为结束页面-->
}
